//
//  CommonTools.swift
//  SFWeiBo
//
//  Created by 孙凡 on 16/4/9.
//  Copyright © 2016年 Edward. All rights reserved.
//

import UIKit

func RGB(red red:CGFloat, green:CGFloat, blue:CGFloat) -> UIColor{

    return UIColor.init(red: red/255.0, green: green/255.0, blue: blue/255.0, alpha: 1)
}

func SFRandom() -> UIColor{

    return RGB(red: CGFloat(random()%255), green: CGFloat(random()%255), blue: CGFloat(random()%255))

}


let SFSwitchRootViewControllerNotification = "SFSwitchRootViewControllerNotification"